Skip to main content

Get Verification By Id

Queries the verification result using the verification ID.

This API can be used to retrieve the status and result of a specific verification request.

Request Type: GET

Sample Request:

curl -X GET '{BASE-URL}/v1/verifications/id/{id}'
ParameterDescriptionJSON TypeRequired
idUnique identifier of the verification request that was returned when the verification was initiated.stringYes

Sample Response:

{
"identity": {
"type": "number",
"endpoint": "+91XXXXXXXXXX"
},
"method": "seamless",
"reference": "string",
"id": "XXXXXXXXXXXXXXXXXXXX",
"status": "SUCCESSFUL",
"reason": "string",
"countryId": null,
"verificationTimestamp": "XXXX-XX-XXXXX:15:43Z",
"price": {
"currencyId": "INR",
"amount": "0.X"
},
"source": null
}

A success response, or an Error.

ParameterDescriptionJSON TypeRequired
idUnique identifier of the verification request. This value matches the ID returned when the verification was started.StringYes
statusCurrent status of the verification process. Indicates whether the verification is pending, successful, or failed.stringYes
reasonProvides additional information explaining why the verification failed or was denied.stringNo
referenceCustom reference value provided when initiating the verification request. Useful for mapping the verification to internal systems.stringNo
identityContains the details of the identity that was verified (usually the user's phone number).objectyes
typeType of identity being verified. Currently the value is "number".Stringyes
endpointThe phone number that is being verified in E.164 format.stringYes
countryIdThe ID of the country to which the verification was sent.stringNo
verificationTimestampThe timestamp in UTC format.
Example:"2023-04-21T14:45:51"
objectyes
methodThe verification method used for the request (e.g., sms, flashcall, callout, seamless).stringyes
pricePrices associated with this verification.This property will appear in the body of the response with a delay. It will become visible only when the verification status is other than PENDING.objectyes
currencyIdstringyes
amountstringyes
sourceIndicates how the verification was completed (automatic interception or manual entry). Mostly relevant for SMS OTP flows.stringNo

Enum values of status:

StatusDescription
PENDINGVerification is still ongoing.
SUCCESSFULThe phone number was successfully verified.
FAILVerification attempt was made but failed.
DENIEDVerification was denied by Sinch or your backend.
ABORTEDVerification was cancelled because another verification was initiated.
ERRORVerification could not be completed due to network error or unreachable number.

Enum values of reason:

Enum ValueDescription
Denied by callbackCallback response denied the verification.
Invalid callbackCallback was invalid.
Internal errorInternal server error.
Destination deniedVerification destination denied.
FraudFraudulent activity.
Not enough creditNot enough credit in dashboard account.
BlockedBlocked number.
Network error or number unreachableNetwork error or destination number is otherwise unreachable.
Failed pendingPending failure.
SMS delivery failureCould not deliver SMS.
Invalid CLICLI is invalid.
Invalid codeInput code is invalid.
ExpiredVerification request has expired.
Hung up without entering valid codePhone call ended without entering code.